package demo.classloader;


/**
 * @author : feixiang.li
 * @since : 2025-09-20 11:25
 */
public class Main {

    public static void main(String[] args) throws ClassNotFoundException {

        MyClassLoader myClassLoader = new MyClassLoader();
        Class<?> clazz = myClassLoader.loadClass("com.lkcoffee.demo.classloader.A");
        System.out.println(clazz.getName());
        ClassLoader classLoader = clazz.getClassLoader();
        System.out.println(classLoader.equals(myClassLoader));

    }
}
